from flask import Flask
from src.routes.statistics import bp as statistics_bp

def create_app():
    app = Flask(__name__)
    
    # 注册蓝图
    app.register_blueprint(statistics_bp)
    
    return app

if __name__ == '__main__':
    app = create_app()
    app.run(debug=True) 